#pragma once

#include <QWidget>
#include <QtCharts>
using namespace QtCharts;

#include "ui_CWgPlotRef.h"
#include "RefSpec.h"


class CWgPlotRef : public QWidget
{
	Q_OBJECT

public:
	CWgPlotRef(REF_TYPE RefType= REF_TYPE::PSD, QWidget *parent = Q_NULLPTR);
	~CWgPlotRef();

private:
	void initChart();
	REF_TYPE m_enRefType;

public:
	//void RefreshChart(const std::vector<double>& x, const std::vector<double>& y);
	void RefreshChart(const REF_PSD& RefPSD);;
	void RefreshChart(const REF_CSD& RefCSD);;

private:
	Ui::CWgPlotRef *ui;
};
